package com.wenda.homeschooedu.model;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
 /**
  * 家长类
  * _id:家长编号
  * name：家长姓名
  * student_id: 家长所对应的子女的学号
  * userName: 家长账号用户名（昵称）
  * phone: 家长电话号码
  * address: 家庭住址
  * @author Administrator
  *
  */



@Entity
@Table(name="parent")
public class Parent extends BaseModel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8362102402614395234L;
	private int _id;
	private String name;
	@OneToMany(mappedBy="parent",fetch=FetchType.LAZY)
	private Set<Student> student;
	private String userName;
	private String phone;
	private String address;
	private String student_name ;

	public int get_id() {
		return _id;
	}

	public void set_id(int _id) {
		this._id = _id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}



	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}


	public String getStudent_name() {
		return student_name;
	}

	public void setStudent_name(String student_name) {
		this.student_name = student_name;
	}

	public Set<Student> getStudent() {
		return student;
	}

	public void setStudent(Set<Student> student) {
		this.student = student;
	}

	
	
	

}
